import {createApp} from 'vue'
import App from './App.vue'
import {createPinia} from 'pinia'
import router from './routes/router.ts'
import permission from "@/utils/per_directive.ts";
import {initRoute} from "@/utils/initRoute";
import installIcon from "@/utils/iconRegister";

import 'element-plus/dist/index.css'
import '@/assets/styles/base.scss'
import '@/assets/styles/resetElement.scss'
import '@/assets/styles/overall.scss'
import '@/utils/rem.ts'
import 'element-plus/theme-chalk/index.css'

const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
initRoute()
app.use(router)
app.use(installIcon)
app.directive('directive', permission)
app.mount('#app')